package bean;

import java.io.Serializable;
import java.sql.SQLException;
import java.util.Vector;

import dao.GroupDAO;
import dao.UniversityDAO;

public class GroupBean implements UniversityBean {
	private String Denumire;
	private String Created;
	private int id;

	public GroupBean() {
		this.Created = null;
		this.Denumire = null;
	}

	public GroupBean(int object,String nume, String Created) {
		this.Denumire = nume;
		this.Created = Created;
		this.id=object;
	}
	@Override
	public void setId(int id){
	this.id=id;
}
	public void setDenumire(String nume) {
		this.Denumire = nume;
	}

	public void setCreationYear(String year) {
		this.Created = year;
	}
	public int  getId() {
		return this.id;
	}

	public String getDenumire() {
		return this.Denumire;
	}

	public String getYearCreated() {
		return this.Created;
	}

	public Vector getRow() {

		Vector vc = new Vector();
		vc.add(this.id);
		vc.add(this.Denumire);
		vc.add(this.Created);

		return vc;

	}
	@Override
	public UniversityDAO getDAO() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {
		return new GroupDAO();
	}

}
